<?php
	global $user_ID, $user_identity;
	get_currentuserinfo();
	if ($user_ID) :
?>
<ul id="cpbar">
	<li><?php wp_register('', ''); ?></li>
	<li>Signed in as <strong><a href="<?php echo WPADMIN_URL; ?>profile.php">icyleaf</a></strong></li>
	<li><a href="<?php echo WPADMIN_URL; ?>post-new.php">New Posts</a></li>
	<li><a href="<?php echo WPADMIN_URL; ?>edit-comments.php">Comments</a> <?php check_comments(); ?></li>
	<li><a href="<?php echo WPADMIN_URL; ?>themes.php">Themes</a></li>
	<li><a href="<?php echo WPADMIN_URL; ?>plugins.php">Plugins <?php check_plugins(); ?></a></li>
	<li class="last"><?php wp_loginout(); ?></li>
</ul>
<?php else: ?>
<div id="cpbar">
	<?php wp_loginout(); ?>
</div>
<?php endif; ?>